//
//  ShoppingCartModel.m
//  wtshoppingcite
//
//  Created by TW on 14-11-12.
//  Copyright (c) 2014年 TW. All rights reserved.


#import "ShoppingCartModel.h"

@implementation ShoppingCartModel

- (id)initWithShoppingCartInfo:(NSDictionary *)info{
    if(self = [super init]){
        id bid = [info objectForKey:@"productId"];
        self.sid = ObjToString(bid);
        
        id title = [info objectForKey:@"productName"];
        self.title = ObjToString(title);
        
        id oPrice = [info objectForKey:@"originalPrice"];
        self.oPrice = ObjToString(oPrice);
        
        id nPrice = [info objectForKey:@"salePrice"];
        self.nPrice = ObjToString(nPrice);
        
        id sNum = [info objectForKey:@"sNum"];
        self.sNum = ObjToString(sNum);
        
        
        id sPic = [info objectForKey:@"mainImgPath"];
        self.sPic = ObjToString(sPic);
        
        id subTitle = [info objectForKey:@"descp"];
        self.subTitle = ObjToString(subTitle);
        
        id count = [info objectForKey:@"count"];
        self.count = ObjToString(count);
        
    }
    return self;
}


@end
